<%@ page title="" language="C#" masterpagefile="~/RealtimeSite.master" autoeventwireup="true" inherits="Visitor_Temprature_Report, App_Web_v22zhzdt" enableeventvalidation="false" %>

  <%@ Register Assembly="Heidarpour.WebControlUI" Namespace="Heidarpour.WebControlUI"
    TagPrefix="rhp" %>
<%@ Register   Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="AjaxControlToolkit" %>
    <%@ Register   Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">

.green-colour{
background-color:#8dc234;
font-family:Tahoma;
font-size:17px;
padding-left:4px;
color:#ffffff;
margin:2px;
text-decoration:none;
font-weight:bold;
}
.checktext
{
    font-size:18px;
    color:Red;
    font-weight:bold;
    }
.user{
font-family:Tahoma;
font-size:12px;
color:#124c56;
margin:4px;
text-decoration:none;

}
                        .card [class*=card-header-]:not(.card-header-icon):not(.card-header-text):not(.card-header-image) {
    border-radius: 3px;
      margin-top: -37px;
    padding: 7px !important;
}
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    padding: 8px 8px !important;
    vertical-align: middle;
    border-color: #ddd;
}
#MainContent_lblSelectMonth
{
      font-size:13px;
    font-weight:bold; 
}
.card-body label
{
    font-weight:600 !important;
}
.table tr:nth-child(2) {
    background:gray !important;
    color:#fff !important;
    font-weight:900 !important;
 
}
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    
          <div class="main-panel">
        <div class="content">
        <div class="container" id="approvemanualpunch" runat="server">
  <div class="row dash-pane2">	

  <div class="card">
                <div class="card-header card-header-warning">
                  <h4 class="card-title"><i class="fa fa-list fa-fw"></i><asp:Label ID="lblGPSPunchListWithLocation" runat="server" Text="Visitor Temperature  Report"></asp:Label>
                  &nbsp;
                                    
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                                    </h4>
                </div>
                <div class="card-body table-responsive" >
                  
            <div class="row">
            <div class="col-lg-2">
             <asp:Label 
                                        ID="lblSelectMonth" runat="server" Text="Select Report Date" ></asp:Label>
                         
                          <asp:Panel ID="Panel6" runat="server" Visible="false">
                            <rhp:DatePicker ID="txtdate1" runat="server" DatePersian="" CalendarType="Persian"  
        BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" ShowWeekNumbers="True" 
        FirstDayOfWeek="Monday" ShowOthers="True" AutoPostBack="True" ontextchanged="txtdate1_TextChanged" ></rhp:DatePicker>
                            </asp:Panel>

                                 <asp:TextBox ID="txtdate" runat="server"  CssClass="form-control"  
                                      AutoPostBack="True" ontextchanged="txtdate_TextChanged"
           
                   />
            <cc1:calendarextender ID="cal1" runat="server" TargetControlID="txtdate" Format="MM/dd/yyyy"  />
            </div>

                  <div class="col-lg-4">
                        <asp:Label 
                                        ID="Label2" runat="server" Text=" Temperature Selection" Font-Bold="True" Font-Size="10pt" ></asp:Label>
                     <asp:DropDownList ID="DropDownList1" runat="server"  class="form-control" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                         <asp:ListItem>All</asp:ListItem>
                         <asp:ListItem>Normal</asp:ListItem>
                         <asp:ListItem>High Temperature </asp:ListItem>
                        </asp:DropDownList >

                     </div> 



            <div class="col-lg-3" style="margin-top:30px;">
            <%--<asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" 
                                        oncheckedchanged="CheckBox1_CheckedChanged" Text="Select All/Un-Select ALL" />--%>

                                             <asp:Label 
                                        ID="Label31" runat="server" Text="Total Record:"  CssClass="checktext" ></asp:Label>
                                                                                     <asp:Label 
                                        ID="Label1" runat="server" Text="0"  CssClass="checktext" ></asp:Label>


            </div>
           <%-- <div class="col-lg-3" style="margin-top:30px;">
            <asp:Label 
                                        ID="Label3" runat="server" Text="Label" Visible="False"></asp:Label>
                                        <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" 
                                        Text="GPG Punch With Photo" Checked="True" 
                                        oncheckedchanged="CheckBox2_CheckedChanged" />
            </div>--%>
            </div>
             <div class="row" style="margin-left:auto; margin-right:auto; display:table; margin-top:px; margin-bottom:0px;">
                             <asp:Button ID="Btnadd" runat="server" Text="Export Report with Out Photo"    onclientclick="return validate()"
        type="button" class="btn btn-success " onclick="Btnadd_Click" /><i class="fa fa-plus;"></i>&nbsp;&nbsp;


           <input type="button" id="btnPrint" value="Print" onclick="PrintGridData()" class="btn btn-success "  /><i class="fa fa-plus;"></i>&nbsp;&nbsp;

      
            <asp:Button ID="Button1" runat="server" type="button" Text="Close"  onclick="Button1_Click" 
           class="btn btn-danger"
           /><i  class="fa fa-trash-o;"></i>
              </div>
            <br />
               <div class="row" style="margin-left:0px; margin-right:0px; margin-bottom:100px;">  
               <div class="table-responsive">  
               
               <div style="overflow:scroll ;  width:100%;" id="pnlGridView"  >     
                             <asp:GridView ID="Grid1" runat="server" 
                                 class="table table-bordered table-hover table-striped" ShowHeader="true"
          AutoGenerateColumns="False"    ondatabound="Grid1_DataBound" onrowdatabound="Grid1_RowDataBound"  
                                 DataKeyNames="Tran_MachineRawPunchid" onrowdeleting="Grid1_RowDeleting" 
                                 onrowediting="Grid1_RowEditing" onrowupdating="Grid1_RowUpdating" 
                                 AllowPaging="True" PageSize="30" >
                                 
                                
         
          <Columns>
             <%-- <asp:TemplateField HeaderText="Select">
                  <HeaderStyle CssClass="tdsubcellheadingfont" ForeColor="Black" Height="21px" Width="30px" />
                  <ItemTemplate>
                      <asp:CheckBox ID="cbRows" runat="server"  />
                  </ItemTemplate>
                
              </asp:TemplateField>--%>
              <asp:CommandField ShowEditButton="true" />  
               <asp:BoundField DataField="DeviceID" HeaderText="DeviceID" SortExpression="DeviceID"></asp:BoundField>
             
            
               <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Father Name"></asp:BoundField>
                <asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Father Name">
               
            </asp:BoundField>

             <asp:BoundField DataField="Tran_MachineRawPunchid" HeaderText="Contact No" SortExpression="Deptname" Visible="false">
              
            </asp:BoundField>

               <asp:BoundField DataField="Contact No" HeaderText="Contact No" SortExpression="Deptname">
              
            </asp:BoundField>

            <asp:BoundField DataField="Punch_Date" HeaderText="Date" SortExpression="Deptname">
              
            </asp:BoundField>

              <asp:BoundField DataField="Punch_Time" HeaderText="Time" SortExpression="Deptname">
              
            </asp:BoundField>
              
           
           

              <asp:BoundField DataField="Temp_In_Celsius" HeaderText="Temp in °C " SortExpression="Desig_Name">
                
            </asp:BoundField>

              <asp:BoundField DataField="Temp_In_Fahrenheit" HeaderText="Temp_In °F" SortExpression="Desig_Name">
                
            </asp:BoundField>

          <asp:TemplateField HeaderText="Image">
            <ItemTemplate>
                <asp:Image ID="Image1" runat="server" Height="130" Width="130" />
            </ItemTemplate>
        </asp:TemplateField>
              
            <%--   <asp:TemplateField HeaderText="QR Image">
            <ItemTemplate>
                <asp:Image ID="QRImage1" runat="server" Height="130" Width="130" />
            </ItemTemplate>
        </asp:TemplateField>--%>

             <asp:BoundField DataField="Tran_MachineRawPunchid" HeaderText="Contact No" SortExpression="Deptname" Visible="false">
              
            </asp:BoundField>

           </Columns>
         
           <HeaderStyle CssClass="header1"  

                                                                Font-Bold="True" ForeColor="Black" />       

            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />


      </asp:GridView>
      </div>  
        </div>
      </div>   
      <script type="text/javascript" src="jquery.min.js" ></script>
    <script type="text/javascript" src="quicksearch.js"></script>
    <script type="text/javascript">
        $(function () {
            $('.search_textbox').each(function (i) {
                $(this).quicksearch("[id*=Grid1] tr:not(:has(th))", {
                    'testQuery': function (query, txt, row) {
                        return $(row).children(":eq(" + i + ")").text().toLowerCase().indexOf(query[0].toLowerCase()) != -1;
                    }
                });
            });
        });
    </script>

  
                </div>
              </div>
              </div>
             <%-- <div class="row" style="margin-left:auto; margin-right:auto; display:table; margin-top:px; margin-bottom:0px;">
                             <asp:Button ID="Btnadd" runat="server" Text="Export Report"    onclientclick="return validate()"
        type="button" class="btn btn-success " onclick="Btnadd_Click" /><i class="fa fa-plus;"></i>&nbsp;&nbsp;
      
            <asp:Button ID="Button1" runat="server" type="button" Text="Close"  onclick="Button1_Click" 
           class="btn btn-danger"
           /><i  class="fa fa-trash-o;"></i>
              </div>--%>
			
                          
                      
                       
                    </div>
				 </div> </div> </div>

                   <%--<script type="text/javascript">
                       function autoRefreshPage() {
                           window.location = window.location.href;
                       }
                       setInterval('autoRefreshPage()', 120000);


</script>--%>


 <script type="text/javascript">
     function PrintGridData() {
         var prtGrid = document.getElementById('<%=Grid1.ClientID %>');
         prtGrid.border = 0;
         var prtwin = window.open('', 'PrintGridViewData', 'left=100,top=100,width=1000,height=1000,tollbar=0,scrollbars=1,status=0,resizable=1');
         prtwin.document.write(prtGrid.outerHTML);
         prtwin.document.close();
         prtwin.focus();
         prtwin.print();
         prtwin.close();
     }
</script>

 <style type="text/css">

       .header { position:absolute; }

   </style>
</asp:Content>


